package _10define._08homework;

public class Test {
    public static void main(String[] args) {
        Rectangle rectangle=new Rectangle();
        rectangle.setLength(20);
        rectangle.setWidth(10);
        System.out.println("长方形的长："+rectangle.getLength());
        System.out.println("长方形的宽:"+rectangle.getWidth());
        System.out.println("长方形的面积:"+rectangle.acreage());
        System.out.println("长方形的周长:"+rectangle.circumference());
        Square square=new Square();
        square.setEdgelength(15);
        System.out.println("正方形的边长为："+square.getEdgelength());
        System.out.println("正方形的面积为："+square.acreage());
        System.out.println("正方形的周长为："+square.circumference());
    }
}
